package com.ruoyi.doctor.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 历史病例对象 doctor_patient_history
 *
 * @author ruoyi
 * @date 2022-11-13
 */
public class DoctorPatientHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 病例id */
    private Long historyId;

    /** 病例编号 */
    @Excel(name = "病例编号")
    private String historyNumber;

    /** 接诊类型（0,初诊,1复诊） */
    @Excel(name = "接诊类型", readConverterExp = "0=,初诊,1复诊")
    private String historyType;

    /** 病人描述 */
    @Excel(name = "病人描述")
    private String historyDiscribe;

    /** 发病日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发病日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date historyDate;

    /** 诊断信息 */
    @Excel(name = "诊断信息")
    private String historyDiagnosis;

    /** 是否是传染病(0,不传染,1传染) */
    @Excel(name = "是否是传染病(0,不传染,1传染)")
    private String historyContagion;

    /** 医生建议 */
    @Excel(name = "医生建议")
    private String historyProposal;

    /** 医生加的备注 */
    @Excel(name = "医生加的备注")
    private String historyRemark;

    /** 患者id（外键） */
    @Excel(name = "患者id", readConverterExp = "外=键")
    private Integer historyPatientId;

    @Override
    public String toString() {
        return "DoctorPatientHistory{" +
                "historyId=" + historyId +
                ", historyNumber='" + historyNumber + '\'' +
                ", historyType='" + historyType + '\'' +
                ", historyDiscribe='" + historyDiscribe + '\'' +
                ", historyDate=" + historyDate +
                ", historyDiagnosis='" + historyDiagnosis + '\'' +
                ", historyContagion='" + historyContagion + '\'' +
                ", historyProposal='" + historyProposal + '\'' +
                ", historyRemark='" + historyRemark + '\'' +
                ", historyPatientId=" + historyPatientId +
                '}';
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getHistoryId() {
        return historyId;
    }

    public void setHistoryId(Long historyId) {
        this.historyId = historyId;
    }

    public String getHistoryNumber() {
        return historyNumber;
    }

    public void setHistoryNumber(String historyNumber) {
        this.historyNumber = historyNumber;
    }

    public String getHistoryType() {
        return historyType;
    }

    public void setHistoryType(String historyType) {
        this.historyType = historyType;
    }

    public String getHistoryDiscribe() {
        return historyDiscribe;
    }

    public void setHistoryDiscribe(String historyDiscribe) {
        this.historyDiscribe = historyDiscribe;
    }

    public Date getHistoryDate() {
        return historyDate;
    }

    public void setHistoryDate(Date historyDate) {
        this.historyDate = historyDate;
    }

    public String getHistoryDiagnosis() {
        return historyDiagnosis;
    }

    public void setHistoryDiagnosis(String historyDiagnosis) {
        this.historyDiagnosis = historyDiagnosis;
    }

    public String getHistoryContagion() {
        return historyContagion;
    }

    public void setHistoryContagion(String historyContagion) {
        this.historyContagion = historyContagion;
    }

    public String getHistoryProposal() {
        return historyProposal;
    }

    public void setHistoryProposal(String historyProposal) {
        this.historyProposal = historyProposal;
    }

    public String getHistoryRemark() {
        return historyRemark;
    }

    public void setHistoryRemark(String historyRemark) {
        this.historyRemark = historyRemark;
    }

    public Integer getHistoryPatientId() {
        return historyPatientId;
    }

    public void setHistoryPatientId(Integer historyPatientId) {
        this.historyPatientId = historyPatientId;
    }
}
